package singletonPattern;

/**
 * @ClassName HungryTest
 * @Author GuanCary
 * @Date 2020/4/23 3:41
 * @Version 1.0
 **/
public class HungryTest {
    public static void main(String[] args) {
        Hungry instance = Hungry.getInstance();
        instance.setName("我是一个很饿的单例模式");
        System.out.println(instance.getName());
    }
}